

public class Application {
    public static void main(String args[]) {
        Simulator simulator = new Simulator();

        Dog dog=new Dog();
        dog.setName("一休");
        dog.setSize(1);
        Cat cat=new Cat();
        cat.setName("十一");
        cat.setSize(1);
        simulator.playSound(dog);
        simulator.playSound(cat);
    }
}
